package cn.clq.ymcc.exception;

import lombok.Data;

/**
 * @author clqlongbao
 * @version 1.0
 * @description: 全局异常实体类
 * @date 2022/7/15 9:46
 */
@Data
public class GlobalException extends RuntimeException{
    private String code;

    public GlobalException(String message) {
        super(message);
    }

    public GlobalException(String message, String code) {
        super(message);
        this.code = code;
    }
}

